// 添加计划表单
export const PLAN_FORM = [
  {
    type: 'input',
    label: '计划名称',
    key: 'title',
    rules: [
      { required: true, errorMessage: '请输入计划名称' }
    ]
  },
  {
    type: 'dateTime',
    label: '开始时间',
    key: 'startDate',
    dateType: 'date',
    minDate: new Date(),
    rules: [
      { required: true, errorMessage: '请选择开始时间' }
    ]
  },
  {
    type: 'dateTime',
    label: '结束时间',
    key: 'endDate',
    dateType: 'date',
    minDate: new Date(),
    rules: [
      { required: true, errorMessage: '请选择结束时间' }
    ]
  },
  {
    type: 'input',
    label: '训练地点',
    key: 'trainPlace'
  },
  {
    type: 'textarea',
    label: '补充说明',
    key: 'planDesc'
  },
  {
    type: 'slot',
    label: '选择课程课程',
    key: 'videoIds',
    slotName: 'video',
    isContentSlot: true,
    contentSlot: 'videoList',
    rules: [
      { required: true, errorMessage: '请选择课程课程' }
    ]
  }
]

// 计划详情
export const PLAN_DETAIL = [
  {
    label: '起止日期',
    key: 'date'
  },
  {
    label: '训练天数',
    key: 'effectiveDays',
    unit: '天'
  },
  {
    label: '患者姓名',
    key: 'patientName'
  },
  {
    label: '备注',
    key: 'planDesc',
    direction: 'colum'
  },
  {
    label: '训练课程',
    key: 'videos',
    valueSlot: 'videos',
    direction: 'colum'
  }
]

// 添加评定结果表单
export const ASSESS_CONFIG = [
  
  // {
  //   type: 'radioGroup',
  //   label: '康复计划达标',
  //   key: 'result',
  //   initVal: 1,
  //   options: [
  //     { text: '是', value: 1 },
  //     { text: '否', value: 2 }
  //   ],
  //   rules: [
  //     { required: true, errorMessage: '请选择康复计划达标' }
  //   ]
  // },
  // {
  //   type: 'input',
  //   label: '训练地点',
  //   key: 'exerciseAddress'
  // },
  {
    type: 'imgGroupUpload',
    label: '体态图上传',
    key: 'img',
    imgGroupList: [
      { desc: '侧面照', key: 'faceImg', exampleImg: 'https://rb.biomedical-wh.com/prod-api/profile/upload/static/img/example-imgs/side_example.jpg' },
      { desc: '背面照', key: 'backImg', exampleImg: 'https://rb.biomedical-wh.com/prod-api/profile/upload/static/img/example-imgs/back_example.jpg' },
      { desc: '右侧背面照', key: 'sideImg', exampleImg: 'https://rb.biomedical-wh.com/prod-api/profile/upload/static/img/example-imgs/right_side_example.jpg' }
    ],
    rules: [
      { required: true, errorMessage: '请上传体态图图片' }
    ]
  },
  {
    type: 'textarea',
    label: '评估小结',
    key: 'firstContent',
    rules: [
      { required: true, errorMessage: '请输入评估小结' }
    ]
  },
  {
    type: 'textarea',
    label: '康复目标',
    key: 'secondContent',
    rules: [
      { required: true, errorMessage: '请输入康复目标' }
    ]
  }
]